<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="zh-cn">
  <head>
	  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	  <meta charset="utf-8">
	  <!-- Title and other stuffs -->
	  <title>用户注册页面 Bootstrap响应式后台管理系统</title> 
	  <meta name="keywords" content="Bootstrap后台管理系统" />
	  <meta name="description" content="Bootstrap后台管理系统" />
	  <meta name="viewport" content="width=device-width, initial-scale=1.0">
	  <meta name="author" content="">
	  <!-- Stylesheets -->
	  <link href="style/bootstrap.css" rel="stylesheet">
	  <link rel="stylesheet" href="style/font-awesome.css">
	  <link href="style/style.css" rel="stylesheet">
	  <link href="style/bootstrap-responsive.css" rel="stylesheet">
	  
	  <!-- HTML5 Support for IE -->
	  <!--[if lt IE 9]>
	  <script src="js/html5shim.js"></script>
	  <![endif]-->
	
	  <!-- Favicon -->
	  <link rel="shortcut icon" href="img/favicon/favicon.png">
	  <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script>
	  <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.form.js"></script>
  	  <script type="text/javascript">
			function registSubmit(){
				var ck = document.getElementById("ck");
						if(ck.checked){
							return true;
						}else{
							alert("请接收条款协议！");
							return false; 
						}
			}
	  </script>
  </head>
  
  <body>
	  <div class="admin-form">
	  <div class="container">
	    <div class="row">
	      <div class="col-lg-12">
	        <!-- Widget starts -->
	            <div class="widget wred">
	              <div class="widget-head">
	                <i class="icon-lock"></i>&nbsp;&nbsp;&nbsp;&nbsp;注册 
	              </div>
	              <div class="widget-content">
	                <div class="padd">
	                  
	                  <form class="form-horizontal" action="${pageContext.request.contextPath }/user/registerUser.action" method="post" onsubmit="return registSubmit()">
	                    <!-- Registration form starts -->
	                                      <!-- Name -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;用户名</label>
	                                            <div class="col-lg-9">
	                                              <input type="text" required="required" class="form-control" id="userName" name="userName">
	                                            </div>
	                                          </div>   
	                                          <!-- Email -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="email"> <font color="red">*</font>&nbsp;&nbsp;Email</label>
	                                            <div class="col-lg-9">
	                                              <input type="text" required="required" class="form-control" id="email" name="email">
	                                            </div>
	                                          </div>
	                                          <!-- Select box -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3"> <font color="red">*</font>&nbsp;&nbsp;住址</label>
	                                            <div class="col-lg-9">                               
	                                               <input type="text" required="required" class="form-control" id="address" name="address">
	                                            </div>
	                                          </div>                                           
	                                          <!-- Username -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;真实姓名</label>
	                                            <div class="col-lg-9">
	                                              <input type="text" required="required"  class="form-control" id="name"  name="name">
	                                            </div>
	                                          </div>
	                                          <!-- Password -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="email"> <font color="red">*</font>&nbsp;&nbsp;密码</label>
	                                            <div class="col-lg-9">
	                                              <input type="password" required="required" class="form-control" id="pwd" name="pwd">
	                                            </div>
	                                          </div>
	                                          <!-- dep -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;部门</label>
	                                            <div class="col-lg-9">
	                                              	<select name="depUuid">
	                                              		<option>---请选择---</option>
	                            						<option value="1">总裁办</option>   
	                            						<option value="2">采购部</option> 
	                            						<option value="3">销售部</option> 
	                            						<option value="4">运输中心</option> 
	                            						<option value="5">库管中心</option> 
	                            						<option value="6">人力资源</option> 
	                            						<option value="7">财务部</option>                	
	                                              	</select>
	                                            </div>
	                                          </div>
	                                          <!-- tel -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;联系方式</label>
	                                            <div class="col-lg-9">
	                                              <input type="text" required="required"  class="form-control" id="tele"  name="tele">
	                                            </div>
	                                          </div>
	                                          <!-- sex -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;性别</label>
	                                            <div class="col-lg-9">
	                                              <input type="radio" name="gender" value='1' ><b>&nbsp;&nbsp;♂&nbsp;&nbsp;男</b>
	                                              <input type="radio" name="gender" value='0' ><b>&nbsp;&nbsp;♀&nbsp;&nbsp;女</b>
	                                            </div>
	                                          </div>
	                                          <!-- birthday -->
	                                          <div class="form-group">
	                                            <label class="control-label col-lg-3" for="name"> <font color="red">*</font>&nbsp;&nbsp;生日</label>
	                                            <div class="col-lg-9">
													<input type="text" required="required"  class="form-control" id="birthday"  name="birthday">
											    </div>
	                                          </div>
	                                          <!-- Accept box and button s-->
	                                          <div class="form-group">
	                                            <div class="col-lg-9 col-lg-offset-3">
												  <div class="checkbox">
	                                              <label>
	                                                <input type="checkbox" id="ck">接受条款 &amp; 注册协议
	                                              </label>
												  </div>
	                                              <br />
	                                              <input  type="submit" class="btn btn-danger" value="注册"/>
	                                              <button type="reset" class="btn btn-success">重置</button>
	                                            </div>
	                                            <div class="form-group">
	                                            <div class="col-lg-9 col-lg-offset-3">
												  <div class="checkbox">
	                                              <label>
	                                                  <font color="gray">注：&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="red">*</font><font color="gray">&nbsp;&nbsp;&nbsp;&nbsp;为必填信息</font>
	                                              </label>
												  </div>
	                                             </div> 
	                                          </div>
	                                          </div>
	                  </form>
	                </div>
	              </div>
	                <div class="widget-foot">
	                  已有账号? <a href="${pageContext.request.contextPath }/login.jsp">登陆</a>
	                </div>
	            </div>  
	      </div>
	    </div>
	  </div> 
	</div>
		
			
	
	<!-- JS -->
	<script src="js/jquery.js"></script>
	<script src="js/bootstrap.js"></script>
  </body>
</html>
